package com.mew.chess.core.game.yxx.game.message;


import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class YxxPushDealCardMessage extends ZebraBaseMessage<YxxPushDealCardMessage> {

    private int remainTime;
    private YxxPushBetInfoMessage betInfoMessage;
    private YxxDealCardMessage dealCardMessage;

    @Override
    public void write(ByteBuf b) {

        writeInt(b, remainTime);
        betInfoMessage.writeMsg(b);
        dealCardMessage.writeMsg(b);
    }


    @Override
    public YxxPushDealCardMessage read(ByteBuf b) {
        return null;
    }
}
